// Author: wsfuyibing <682805@qq.com>
// Date: 2025-06-11

package responses

import (
	"server/app/http/models"
)

// OrderArcadeResponse
// 钓友订单.
type OrderArcadeResponse struct {
	Id      int64
	OrderId int64

	Order *OrderResponse `json:",omitempty"`
}

// With
// 数据绑定.
func (o *OrderArcadeResponse) With(m *models.OrderArcade) *OrderArcadeResponse {
	o.Id = m.Id
	o.OrderId = m.OrderId
	return o
}

// WithOrder
// 绑定用户.
func (o *OrderArcadeResponse) WithOrder(m *models.Order) *OrderArcadeResponse {
	if m != nil {
		o.Order = (&OrderResponse{}).With(m)
	}
	return o
}
